﻿<%@ Page AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Language="C#"
    StylesheetTheme="Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>BWS-业务工作管理系统</title>
</head>
<body>

    <script type="text/javascript">

        //window.onload=function(){ for(var i=0; i<document.links.length; i++) document.links[i].onfocus=function(){this.blur()}}
        ///dfdsfdsafdsa
        var minHeight;
        function GetHeight() {
            if (window.ActiveXObject) {
                minHeight = document.documentElement.clientHeight - 252;
            }
            else {
                minHeight = window.innerHeight - 252;
            }
        }
        function scroll_to_top() {
            document.body.scrollTop = 0;
        }

        function TuneHeight() {
            GetHeight();
            var subHeight;
            var frm;
            if (window.ActiveXObject) {
                frm = document.getElementById("mainFrame");
                subHeight = document.frames["mainFrame"].document.body.scrollHeight;
            }
            else {
                frm = document.getElementById("mainFrame");
                subHeight = frm.contentDocument.body.scrollHeight;
                //subHeight = frm.contentDocument.getElementById("mm").style.height;
                //alert(subHeight);
            }
            if (subHeight < minHeight) {
                frm.height = minHeight;
            }
            else {
                frm.height = (subHeight + 30) + "px";
            }
            scroll_to_top();
        }

        window.onresize = TuneHeight;
    </script>

    <form id="form1" runat="server">
    <div class="page_top_bg">
        <div class="page_bottom_bg">
            <div id="page" class="pg_content_top">
                <div class="pg_content_bottom">
                    <div id="header">
                        欢迎您：<asp:Label ID="UserName" runat="server"></asp:Label>
                        <asp:LinkButton ID="ButtonLogout" runat="server" CssClass="redcolor" OnClick="ButtonLogout_Click">退出系统</asp:LinkButton>
                    </div>
                    <div id="toolbar">
                        <div class="logo">
                            <asp:Image ID="Logo" runat="server" ImageUrl="~/Images/Logo.gif" />
                        </div>
                        <div id="NavMenu" class="nav" runat="server">
                        </div>
                        <div style="clear: both; font-size: 1px;">
                        </div>
                        <iframe  id="mainFrame" allowtransparency="true" frameborder="0" height="480" name="mainFrame"
                            onload="TuneHeight();" scrolling="no" src='<%=CheckUser() %>' width="100%"></iframe>
                    </div>
                    <div class="pg_content_copyright">
                        <span></span>
                        <%--    <div>
                            <asp:Image ID="yp" runat="server" ImageUrl="~/Images/yp.gif" /></div>--%>
                        Copyright &copy; 2008 - 2010 <a href="http://10.24.10.9/">河北消防</a>
                        <br />
                        河北省公安消防总队信息通讯处研制开发&nbsp;&nbsp;咨询电话：0311-89181160</div>
                </div>
                <div class="pg_content_footer clear">
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
